//
//  BaseMenuViewController.m
//  NOAHWM
//
//  Created by Ryan on 13-6-13.
//  Copyright (c) 2013年 Ryan. All rights reserved.
//

#import "BaseMenuViewController.h"
#import "NYMemberCenterDataManager.h"

@interface BaseMenuViewController ()

@end

@implementation BaseMenuViewController

#pragma mark - BaseViewController methods
- (void)leftItemTapped
{
    [[NSNotificationCenter defaultCenter] postNotificationName:kShowLeftMenuNotification object:nil];
}

- (void)rightItemTapped
{
    if([[NYMemberCenterDataManager sharedManager] isLogin])
        [[NSNotificationCenter defaultCenter] postNotificationName:kShowRightMenuNotification object:nil];
    else
    {
        [[NSNotificationCenter defaultCenter] postNotificationName:kShowLoginViewNotification object:nil];
    }
}


#pragma mark - UIViewController methods

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    [self setLeftNaviItemWithTitle:nil imageName:@"Icon_List"];
    [self setRightNaviItemWithTitle:nil imageName:@"Icon_User"];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
